<?
	/* ========= error code ===========
		1 = required to login
		2 = access level not qualified	
	*/
	if(empty($_SESSION['loginid']))
	{
?>
	<script type="text/javascript">
	<!--
		window.location = "os_invalid.php?error=1" // need to login
	//-->
	</script>
<?
	}
?>